package cn.yanglq.Rss.web.common.vo;

import java.io.Serializable;

/**
 * 接口统一返回数据格式
 * 
 * @ClassName ApiResult
 * @Description
 * @author zhouwj
 * @date 2015年12月26日
 * 
 */
public class ApiResult implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8563654960356026191L;

	/**
	 * 是否成功
	 */
	private boolean success;

	/**
	 * 错误码
	 */
	private int errorcode;

	/**
	 * 错误消息
	 */
	private String message;

	/**
	 * 实体数据
	 */
	private Object datas;

	public ApiResult() {

	}

	public ApiResult(boolean success, int errorcode, String message) {
		this.success = success;
		this.errorcode = errorcode;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getErrorcode() {
		return errorcode;
	}

	public void setErrorcode(int errorcode) {
		this.errorcode = errorcode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getDatas() {
		return datas;
	}

	public void setDatas(Object datas) {
		this.datas = datas;
	}

}
